package br.edu.unifei.mestrado.kl;

import br.edu.unifei.mestrado.commons.graph.GraphWrapper;
import br.edu.unifei.mestrado.commons.partition.AbstractPartitionIndex;
import br.edu.unifei.mestrado.db.graph.GraphDB;
import br.edu.unifei.mestrado.db.graph.PartitionIndexDB;

public class KLNeoDB extends KL {

	protected GraphDB grafo = null; // usado por MultinivelNeoDB
	private AbstractPartitionIndex index = null;

	public KLNeoDB(GraphDB newGraph) {
		// UTIL: O KL não reusa o banco, pq ele particiona o grafo mais contraido.
		grafo = newGraph;
		index = new PartitionIndexDB(grafo.getIndexPartition(), grafo.getIndexName());
	}

	@Override
	protected GraphWrapper getGrafo() {
		return grafo;
	}

	@Override
	public AbstractPartitionIndex getPartitionIndex() {
		return index;
	}

	@Override
	public void initView(GraphWrapper initialGraph) {
	}

	@Override
	public void setShowView(boolean showView) {
	}

	@Override
	public void updateView(GraphWrapper grafo, int level, String it, int cutWeight) {
	}

	@Override
	public void updateViewCoarsed(GraphWrapper grafo, int level, String it, int cutWeight) {
	}
	
	@Override
	public void repaint() {
	}
}
